package com.wulis.provider.authority.mapper;

import com.wulis.config.security.AuthUserDetails;
import com.wulis.provider.authority.model.entity.Account;
import com.wulis.common.support.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * 权限管理:账号表 Mapper
 *
 * @author WuliBao
 * @date 2020-04-17
 */
public interface AccountMapper extends BaseMapper<Account> {
    
    /**
     * WEB:根据账号查询账号信息
     * 
     * @param account account
     * @return AuthUserDetails
     */
    AuthUserDetails queryAuthUserByAccount(@Param("account") String account);
    
    /**
     * WEB:根据手机号查询账号信息
     *
     * @param phoneNumber phoneNumber
     * @return AuthUserDetails
     */
    AuthUserDetails queryAuthUserByPhoneNumber(@Param("phoneNumber") String phoneNumber);
}
